package myPack.GMAO.Entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

@Entity
@DiscriminatorValue("p")
public class Preventive extends DemandeI  implements Serializable
{
	@OneToOne @JoinColumn(name="idB")
	private BMP declencheur;
	
	public Preventive() {
	}


	public Preventive(int idD, int desP, Date dateP, boolean arretP,
			symbtome msymbtome, Etat metat, BMP declencheur) {
		super(idD, desP, dateP, arretP, msymbtome, metat);
		this.declencheur = declencheur;
	}


	public BMP getDeclencheur() {
		return declencheur;
	}

	public void setDeclencheur(BMP declencheur) {
		this.declencheur = declencheur;
	}
}
